#ifndef _FUNCOES_H
#define _FUNCOES_H

#include <QDialog>
#include <QTcpSocket>
#include <QtGui>
#include <QtNetwork>
#include <vector>
#include "wells.h" 


enum FUNCOES{
	HAND_SHAKE = 0,
	GET_WELL_LIST = 1,
	REGISTER_WELL = 2,
	GET_STATE_WELL = 3,
	GET_ALL_DATA_FROM_WELL = 4,
	GET_MASTERS_LIST = 5,
	GET_LETTER_FROM_WELL = 6,
	DELETE_WELL = 7,
	GET_ALARMS_FROM_WELL = 8,
	GET_HISTORIC_FROM_WELL = 9,
	CHANGE_TIMEOUT_WELL = 10
};

class SocketClient {
	public:
		std::map<QString,wells> wMap;
		std::map<int,simuladores> sMap;
		void connectSocket(QString, int);
		SocketClient();
		int sendFunction(int idFunction,QStringList Parans);
		QTcpSocket *sck;
		quint16 blockSize;
		int id;
		void requestWellList();
		void loginRequest(QString login, QString pass);
		void registerWellRequest(QString, int,int);
		void getStateWell(QString);
		void getStateWells();
		void getAlarmsWells();
		void getAlarmsWell(QString);
		void getHistoricFromWell(QString);
};


#endif
